package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 获取名称序号 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/16
 */

@Getter
@Setter
public class GetNameSequenceParam {

    /**
     * 组织ID
     */
    @NotNull(message = "组织ID不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织ID格式错误")
    private String orgId;

    /**
     * 名称类型
     */
    @NotNull(message = "名称类型不能为空")
    @Size(min = 1, message = "名称类型必须为有效值")
    private Integer sequenceType;

    /**
     * 联系人类型
     */
    @NotNull(message = "联系人类型不能为空")
    private Integer memberType;
}
